package com.ruoyi.cderp.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品属性对象 base_data_product_property
 *
 * @author ruoyi
 * @date 2025-03-05
 */
public class ProductProperty extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 编号 */
    @Excel(name = "编号")
    private String code;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 类目编号 */
    private String categoryId;

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    /** 是否必填 */
    @Excel(name = "是否必填")
    private Integer isRequired;

    /** 录入类型 */
    @Excel(name = "录入类型")
    private Integer columnType;

    /** 数据类型 */
    private Integer columnDataType;

    /** 属性类别 */
    @Excel(name = "属性类别")
    private Integer propertyType;

    /** 状态 */
    @Excel(name = "状态")
    private Integer available;

    /** 备注 */
    @Excel(name = "备注")
    private String description;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private String createById;

    /** 修改人ID */
    @Excel(name = "修改人ID")
    private String updateById;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setIsRequired(Integer isRequired)
    {
        this.isRequired = isRequired;
    }

    public Integer getIsRequired()
    {
        return isRequired;
    }
    public void setColumnType(Integer columnType)
    {
        this.columnType = columnType;
    }

    public Integer getColumnType()
    {
        return columnType;
    }
    public void setColumnDataType(Integer columnDataType)
    {
        this.columnDataType = columnDataType;
    }

    public Integer getColumnDataType()
    {
        return columnDataType;
    }
    public void setPropertyType(Integer propertyType)
    {
        this.propertyType = propertyType;
    }

    public Integer getPropertyType()
    {
        return propertyType;
    }
    public void setAvailable(Integer available)
    {
        this.available = available;
    }

    public Integer getAvailable()
    {
        return available;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setCreateById(String createById)
    {
        this.createById = createById;
    }

    public String getCreateById()
    {
        return createById;
    }
    public void setUpdateById(String updateById)
    {
        this.updateById = updateById;
    }

    public String getUpdateById()
    {
        return updateById;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("isRequired", getIsRequired())
            .append("columnType", getColumnType())
            .append("columnDataType", getColumnDataType())
            .append("propertyType", getPropertyType())
            .append("available", getAvailable())
            .append("description", getDescription())
            .append("createBy", getCreateBy())
            .append("createById", getCreateById())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateById", getUpdateById())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
